@import "media.scss";

header {
  background-attachment: fixed;
  background-color: #ccc;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;

  .navbar {
    border: none;
    .navbar-brand {
      color: #fff;
      font-size: 24px;
      font-weight: 800;
      &:hover {
        color: #999;
      }
    }
    .nav {
      a {
        color: #fff;
        font-weight: 600;
        padding: 14px 40px;
        &:hover {
          background: transparent;
          color: #999;
          text-decoration: underline;
        }
      }
    }
    .navbar-toggle {
      .icon-bar {
        background-color: #fff;
      }
    }
    .collapsing, .collapse.in {
      position: absolute;
      width: 100%;
      background-color: #fff;
      a {
        color: #999;
      }
    }
  }
}

.heading {
  h1 {
    @include screen-xs {
      font-size: 20px;
    }
    @include screen-sm {
      font-size: 60px;
    }
  }
  span {
    @include screen-xs {
      font-size: 14px;
    }
    @include screen-sm {
      font-size: 20px;
    }
  }
}

.home-bg {
  background-image: url(../images/index-bg.jpg);
  @include screen-xs {
    background-position: center bottom 250px;
    height: 215px;
  }
  @include screen-sm {
    background-position: center bottom 400px;
    height: 300px;
  }
  @include screen-md {
    background-position: center bottom;
    height: 400px;
  }
  .heading {
    @include screen-xs {
      margin-top: 35px;
    }
    @include screen-sm {
      margin-top: 70px;
    }
    text-align: center;
    h1 {
      @include screen-xs {
        font-size: 40px;
      }
      @include screen-sm {
        font-size: 80px;
      }
    }
  }
}

.home-sidebar {
  padding-top: 20px;
  a {
    color: #afafaf;
    &:hover {
      color: #333;
    }
  }
  .tags {
    a {
      border-radius: 1000px;
      border: 1px #afafaf solid;
      display: inline-block;
      margin-top: 10px;
      padding: 5px 15px;
      &:hover {
        border-color: #333;
        text-decoration: none;
      }
    }
  }
  .archives {
    a {
      display: block;
      font-size: 14px;
      height: 30px;
      line-height: 30px;
    }
  }
}

.detail-bg {
  background-image: url(../images/detail-bg.jpg);
  background-position: 50% 50%;
  @include screen-xs {
    height: 300px;
  }
  @include screen-sm {
    height: 600px;
  }
  .heading {
    @include screen-xs {
      margin: 40px auto 0;
    }
    @include screen-sm {
      margin: 130px auto 0;
    }
    width: 60%;
  }
  .tags a {
    border-radius: 1000px;
    border: 1px #fff solid;
    color: #fff;
    display: inline-block;
    padding: 5px 15px;
    &:hover {
      background: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      color: #999;
    }
  }
}

.detail-content {
  .detail-body {
    word-break: break-all;
  }
  .affix {
    top: 0;
  }
  .sidenav {
    a {
      color: #999;
    }
    ul {
      padding-left: 20px;
    }
    .active > a {
      border-left: 1px solid #999;
    }
    @include screen-xs {
      display: none;
    }
    @include screen-sm {
      display: none;
    }
    @include screen-md {
      display: block;
    }
  }
  .nav {
    .nav {
      display: none;
    }
    .active {
      .nav {
        display: block;
      }
    }
  }
}

.tags-bg {
  background-image: url(../images/tags-bg.jpg);
  background-position: center top;
  @include screen-xs {
    height: 215px;
  }
  @include screen-sm {
    height: 300px;
  }
  .heading {
    margin: 50px auto 0;
    width: 60%;
  }
}

.tags-content {
  .tags-list {
    padding-top: 10px;
    a {
      border-radius: 1000px;
      border: 1px #afafaf solid;
      color: #000;
      display: inline-block;
      font-size: 16px;
      margin-top: 10px;
      padding: 5px 15px;
    }
    a:hover, .active {
      background: #dadada;
      border-color: #cecece;
      color: #fff;
      text-decoration: none;
    }
  }
}

.archives-bg {
  background-image: url(../images/archives-bg.jpg);
  @include screen-xs {
    background-position: center bottom 300px;
    height: 215px;
  }
  @include screen-sm {
    background-position: center bottom 300px;
    height: 300px;
  }
  @include screen-md {
    background-position: center bottom;
    height: 300px;
  }
  .heading {
    margin: 50px auto 0;
    width: 60%;
  }
}

.archives-list {
  padding-bottom: 0;
  li {
    padding-left: 20px;
    margin-top: 30px;
  }
  a {
    font-size: 16px;
    color: #000;
  }
}

.preview-list {
  .preview-title {
    margin-top: 22px;
    margin-bottom: 11px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.1;
    display: block;
  }
  .preview-body {
    line-height: 2;
    font-size: 12px;
    word-break: break-all;
    h1 {
      font-size: 22px;
    }
    h2 {
      font-size: 20px;
    }
    h3 {
      font-size: 18px;
    }
    h4 {
      font-size: 16px;
    }
    h5 {
      font-size: 14px;
    }
    h6 {
      font-size: 12px;
    }
  }
  .preview-date {
    display: block;
    font-style: italic;
    text-align: right;
  }
  a {
    color: #000;
  }
}

.hr {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px #eee solid;
}

.page {
  height: 80px;
  a {
    border-radius: 1000px;
    border: 1px #ccc solid;
    color: #ccc;
    font-size: 20px;
    padding: 12px 30px;
    &:hover {
      border-color: #666;
      text-decoration: none;
      color: #666;
    }
  }
}

footer {
  font-size: 14px;
  height: 60px;
  text-align: center;
}